/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const sysRouter = {
    path: '/sys',
    component: Layout,
    redirect: 'noRedirect',
    name: 'sysDemo',
    meta: {
        title: '系统管理',
        icon: 'el-icon-setting'
    },
    children: [
        {
            path: 'sys-area',
            component: () => import('@/views/sys/sys-area/sys-area'),
            name: 'sys-area',
            meta: { title: '地址管理', icon: 'el-icon-map-location' }
        },
        {
            path: 'sys-user',
            component: () => import('@/views/sys/sys-user/sys-user'),
            name: 'sys-user',
            meta: { title: '管理员列表', icon: 'el-icon-user-solid' }
        },
        {
            path: 'sys-role',
            component: () => import('@/views/sys/sys-role/sys-role'),
            name: 'sys-role',
            meta: { title: '角色管理', icon: 'el-icon-s-custom' }
        },
        {
            path: 'sys-menu',
            component: () => import('@/views/sys/sys-menu/sys-menu'),
            name: 'sys-menu',
            meta: { title: '菜单管理', icon: 'el-icon-s-operation' }
        },
        {
            path: 'sys-config',
            component: () => import('@/views/sys/sys-config/sys-config'),
            name: 'sys-config',
            meta: { title: '参数管理', icon: 'el-icon-s-claim' }
        },
        {
            path: 'sys-log',
            component: () => import('@/views/sys/sys-log/sys-log'),
            name: 'sys-log',
            meta: { title: '系统日志', icon: 'el-icon-s-order' }
        },
    ]
}

export default sysRouter
